home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / Libraries / SAT 2.3.8 / Demos / SAT Invaders demo ƒ / soundConst.c < prev    next >
Text File  |  1994-01-14  |  1KB  |  37 lines

  1. //• C translation from Pascal source file: soundConst.p
  2.  
  3. //• =================================================.
  4. //• ============= Sound Constants and handles ==============.
  5. //• =================================================.
  6.  
  7. //• Example file for Ingemars Sprite Animation Toolkit.
  8. //• © Ingemar Ragnemalm 1992.
  9. //• See doc files for legal terms for using this code.
  10.  
  11. //• This file defines handles for your sound resources. The procedure LoadSounds.
  12. //• is called at startup. It calls the sound units for each sound to preload. Note that.
  13. //• merely loading the sound is not enough if the sound unit decides to use Sound Driver.
  14.  
  15. //• When designing your game, my advice to you is to use sounds, several sounds,.
  16. //• but not ridiculously many and large. A simplistic game that takes 1000k on disk.
  17. //• just because it contains lots of sounds is just a waste of disk (and we have seen.
  18. //• far too many of them on the shareware market), but a well-polished, complex.
  19. //• and interesting game can and should use more.
  20.  
  21. //• SoundConst; I know, bad name for the unit, nowadays.
  22.  
  23. //• Prototypes, etc.
  24.  
  25. #include "SAT.h"
  26.  
  27. Handle toffH, dunkH, piuH, kraschH;
  28.  
  29. void LoadSounds ()
  30. {
  31.     toffH = SATGetNamedSound ("\ptoff");
  32.     dunkH = SATGetNamedSound ("\pDunk");
  33.     piuH = SATGetNamedSound ("\ppiu");
  34.     kraschH = SATGetNamedSound ("\pKrasch 1");
  35. }
  36.  
  37.